home *** CD-ROM | disk | FTP | other *** search
/ Great Canadian Scientists / GCS_CD.iso / pc / gcsdata / databa_o.dxr / 00049_ChangeField Size.ls < prev    next >
Encoding:
Text File  |  1996-09-21  |  2.3 KB  |  56 lines

  1. on ChangeFieldSize f, t, a, b, c, d
  2.   repeat with count = f to t
  3.     set the rect of cast count to rect(a, b, c, d)
  4.   end repeat
  5. end
  6.  
  7. on SetupScientist f, t
  8.   repeat with count = f to t
  9.     set the name of cast count to line 1 of the text of cast count
  10.     put line 1 of the text of cast count into field (count + 300)
  11.     put line 3 of the text of cast count into line 2 of field (count + 300)
  12.     set the name of cast (count + 300) to word 1 of the text of cast (count + 300) & "-Title"
  13.     delete line 4 of field count
  14.     delete line 3 of field count
  15.     delete line 2 of field count
  16.     delete line 1 of field count
  17.     set the textStyle of member count to "Plain"
  18.     set the textSize of member count to 14
  19.     set the textFont of member count to "Helvetica"
  20.     set the textStyle of line 1 of member (count + 300) to "Plain"
  21.     set the textSize of line 1 of member (count + 300) to 36
  22.     set the textFont of line 1 of member (count + 300) to "Helvetica"
  23.     set the textStyle of line 1 of member (count + 300) to "Bold"
  24.     set the textSize of line 2 of member (count + 300) to 18
  25.     set the textStyle of line 2 of member (count + 300) to "Plain"
  26.     set the textFont of line 2 of member (count + 300) to "Times"
  27.     set the textStyle of line 2 of member (count + 300) to "Italic"
  28.     set the foreColor of member (count + 300) to 0
  29.     set the backcolor of cast (count + 300) to 255
  30.   end repeat
  31.   ChangeFieldSize(f, t, 5, 145, 616, 445)
  32.   ChangeFieldSize(f + 300, t + 300, 6, 6, 631, 135)
  33. end
  34.  
  35. on AddCopyRight
  36.   set Temp to RETURN & "┬⌐ 1996 Softshell Small Systems Software Design Inc." & RETURN & TAB & "All rights reserved"
  37.   repeat with count = 301 to 446
  38.     put Temp into line the number of lines in field the name of cast count + 1 of field the name of cast count
  39.   end repeat
  40. end
  41.  
  42. on RemSpace
  43.   repeat with count = 171 to 247
  44.     if the name of cast count <> EMPTY then
  45.       repeat with Count2 = 1 to the number of lines in field the name of cast count
  46.         set Temp1 to the last char in line Count2 of field the name of cast count
  47.         if Temp1 = " " then
  48.           set Temp2 to the length of line Count2 of field the name of cast count
  49.           delete char Temp2 of line Count2 of field the name of cast count
  50.           put the name of cast count
  51.         end if
  52.       end repeat
  53.     end if
  54.   end repeat
  55. end
  56.